﻿#ifndef UIDEVICEMANAGE_H
#define UIDEVICEMANAGE_H

#include <QWidget>

#include <model/device/uideviceinfocard.h>


class UiDeviceManage : public QWidget {
    Q_OBJECT
public:
    explicit UiDeviceManage(QWidget *parent = nullptr);

    void initUi();
    void initData();
signals:

protected:
    void paintEvent(QPaintEvent *event) override;

private:
    class QVBoxLayout* m_mainLayout = nullptr;
    class QPushButton* m_newSceneBtn = nullptr;
    class QPushButton* m_refreshSceneBtn = nullptr;
    class PanelWidget* m_view = nullptr;

    QMap<QString, UiDeviceInfoCard*> m_deviceCardsMap;
};

#endif // UIDEVICEMANAGE_H
